/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ideastec.mipyme.repository.email;

import java.util.List;
import java.io.Serializable;
import com.ideastec.mipyme.model.email.Email;

/**
 *
 * @author Diego Rafael Graf
 */
public interface RepositorioEmail {
    
    List<Email> buscarTodos() throws Exception;
    
    Email buscarPorID(Serializable id) throws Exception;
    
    Long contarTodos() throws Exception;
    
    List<Email> buscarEmail(Email email) throws Exception;
    
    void guardar(Email email) throws Exception;
    
    void actualizar(Email email) throws Exception;
    
    void guardarOActualizar(Email email) throws Exception;
    
    void borrar(Email email) throws Exception;     
    
}
